package com.centaline.androidsalesblog.utils;

import com.centaline.androidsalesblog.constants.AppConstant;

import java.util.Locale;

/**
 * 融云 用户id工具
 * Created by guilin on 16/3/16.
 */
public class RongUserIdUtil {

    private RongUserIdUtil() {
        //Utility Class
    }

    /**
     * 获取找房用户的融云用户id
     */
    public static String getCustomerId(String userId) {
        return String.format(Locale.CHINA, "u_%s", userId).toLowerCase(Locale.CHINA);
    }

    /**
     * 获取经纪人的融云用户id
     */
    public static String getSatffId(String staffNo) {
        return String.format(Locale.CHINA, "s_%s_%s", AppConstant.CityCode, staffNo).toLowerCase(Locale.CHINA);
    }

}
